// 封装文章的请求函数
import request from '@/utils/request';

// 获取新闻文章推荐
export const recArticleAPI = (params) => {
	return request({
		url: '/v1_0/articles',
		params,
	});
};

// 获取文章内容详情
export const getContentAPI = (id) => {
	return request({
		url: `/v1_0/articles/${id}`,
	});
};
